//
//  KDMonitorBodyView.h
//  PublicSentimentMonitorSystem
//
//  Created by 魏强 on 15/10/29.
//  Copyright © 2015年 魏强. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "KDMBodyViewModel.h"
@class KDMListCellBaseModel;
@class KDMBodyViewModel;
@protocol KDMonitorBodyViewDelegate;
@interface KDMonitorBodyView : UIView
@property (nonatomic, strong) KDMBodyViewModel *model;
@property (nonatomic, weak) id<KDMonitorBodyViewDelegate> delegate;

+ (instancetype)bodyViewWithFrame:(CGRect)frame;
@end
@protocol KDMonitorBodyViewDelegate <NSObject>

/**
 *  tableView被电击了
 */
- (void)KDMonitorBodyView :(KDMonitorBodyView *)bodyView WithKDMListCellBaseModel:(KDMListCellBaseModel *)model didSelectRowAtIndexPath:(NSIndexPath *)indexPath;
/**
 *  上报按钮被电击了
 */
- (void)KDMonitorBodyView:(KDMonitorBodyView *)bodyView WithKDMListCellBaseModel:(KDMListCellBaseModel *)model;
/**
 *  被其他人登陆了
 */
- (void)bodyViewDidLoginedByOther:(KDMonitorBodyView *)bodyView;
/**
 *  设置按钮被点击了
 *  @param Model 这个bodyView的模型
 */
- (void)KDMonitorBodyView:(KDMonitorBodyView *)bodyView SetBtnClickWithKDMBodyViewModel:(KDMBodyViewModel *)model;
/**
 *  相关按钮被点击了
 */
- (void)KDMonitorBodyView:(KDMonitorBodyView *)bodyView relationBtnClickWithModel:(KDMListCellBaseModel *)model;
@end